package com.senon.mvpretrofitrx.mvp.contract;

import com.senon.mvpretrofitrx.mvp.base.BasePresenter;
import com.senon.mvpretrofitrx.mvp.base.BaseView;
import com.senon.mvpretrofitrx.mvp.test.BaseResponse;
import com.senon.mvpretrofitrx.mvp.test.NewsResult;

import java.util.HashMap;

import io.reactivex.ObservableTransformer;

/**
 * Created by Administrator on 2018/4/18.
 */

public interface NewsContract {

    interface NewsView extends BaseView {

        void result(BaseResponse<NewsResult> data);

        void setMsg(String msg);

        <T> ObservableTransformer<T, T> bindLifecycle();

    }

    abstract class Presenter extends BasePresenter<NewsContract.NewsView> {

        public abstract void getNews(HashMap<String, String> map, boolean isDialog, boolean cancelable);

    }
}
